package com.songyang.blog.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.songyang.blog.entity.Post;
import com.songyang.blog.vo.PostVO;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 宋阳
 * @since 2021-05-07
 */
public interface PostService extends IService<Post> {

    IPage<PostVO> paging(Page page, Long categoryId, Long userId, Integer level, String order);

    PostVO selectOnePost(QueryWrapper<Post> queryWrapper);

    void initWeekRank();

    void incrCommentAndUnionForWeekRank(Long postId,boolean isIncr);

    void putVIewCount(PostVO vo);
}
